<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        body {
            font: arial, sans-serif;
            font-size: 16px;
            line-height: 1.6;
        }

        p::first-letter {
            font-size: 2em;
            color: red;
            font-weight: normal;
        }
    </style>

    <link rel="stylesheet" href="style.css">
    <script src="main.js"></script>
</head>

<body>
    <p id="main">JavaScript getComputedStyle demo for elements</p>
    <div id="content"></div>
    <script>
        let p = document.getElementById('main');
        let style = getComputedStyle(p, '::first-letter');
        document.getElementById('content').innerHTML = style.fontSize;
        console.log(style.fontSize);
    </script>
</body>

</html>